package com.zwq.pojo.dto;

import com.zwq.pojo.entity.Machine;
import org.springframework.beans.BeanUtils;

public class MachineDto extends Machine {

    public static MachineDto convertBy(Machine machine) {
        MachineDto dto = new MachineDto();
        BeanUtils.copyProperties(machine, dto);
        return dto;
    }
}
